package org.qloudgen.txn.dilithium.cluster.database;

import java.util.List;
import org.apache.ibatis.session.SqlSession;
import org.qloudgen.txn.dilithium.cluster.beans.Dict;
import org.qloudgen.txn.dilithium.cluster.sqlmap.ConfigNames;

import org.qloudgen.txn.dilithium.cluster.common.CommonValues;

public class DefaultImpl {
	
	public final static List<Dict> getDicts(){
		
		SqlSession sess = CommonValues.factory.openSession();
		List<Dict> result = sess.selectList(ConfigNames.SELECT_DICTS);
		sess.close();
		return result;
				
	}
	
}
